package com.yunfei.yunhetong.elecContOperLog.bo;
import com.yunfei.yunhetong.elecContOperLog.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename ELEC_CONT_OPER_LOG
*@author zhengyunfei
*@createDate Tue Aug 27 10:30:56 CST 2019
*/ 
public class ElecContOperLogBo implements java.io.Serializable{
	private String contractId;
	private String contractNum;
	private String operId;
	private String operDate;
	private String operTyp;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setContractId(String contractId){
		this.contractId=contractId;
	}
	public String getContractId(){
		return contractId;
	}
	public void setContractNum(String contractNum){
		this.contractNum=contractNum;
	}
	public String getContractNum(){
		return contractNum;
	}
	public void setOperId(String operId){
		this.operId=operId;
	}
	public String getOperId(){
		return operId;
	}
	public void setOperDate(String operDate){
		this.operDate=operDate;
	}
	public String getOperDate(){
		return operDate;
	}
	public void setOperTyp(String operTyp){
		this.operTyp=operTyp;
	}
	public String getOperTyp(){
		return operTyp;
	}
	public static ElecContOperLogEntity boToEntity(ElecContOperLogBo bo){
		ElecContOperLogEntity entity=new ElecContOperLogEntity();
		entity.setContractId(bo.getContractId());
		entity.setContractNum(bo.getContractNum());
		entity.setOperId(bo.getOperId());
		entity.setOperDate(bo.getOperDate());
		entity.setOperTyp(bo.getOperTyp());
		return entity;
	}
	public static ElecContOperLogBo entityToBo(ElecContOperLogEntity bo){
		ElecContOperLogBo entity=new ElecContOperLogBo();
		entity.setContractId(bo.getContractId());
		entity.setContractNum(bo.getContractNum());
		entity.setOperId(bo.getOperId());
		entity.setOperDate(bo.getOperDate());
		entity.setOperTyp(bo.getOperTyp());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("contractId")){
					result="CONTRACT_ID";
				}
				if(field.equals("contractNum")){
					result="CONTRACT_NUM";
				}
				if(field.equals("operId")){
					result="OPER_ID";
				}
				if(field.equals("operDate")){
					result="OPER_DATE";
				}
				if(field.equals("operTyp")){
					result="OPER_TYP";
				}
		}
		return result;
	}
}

